#include <stdio.h>

void larger(double * x, double * y);

int main(void)
{
    double x, y;

    scanf("%lf", &x);
    scanf("%lf", &y);
    larger(&x , &y);
    printf("%f\r\n", x);
    printf("%f\r\n", y);

    return 0;
}

void larger(double * x, double * y)
{
    if(*x > *y)
        *y = *x;
    else
        *y = *x;
}